package com.my.thymeleaf.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class HelloThymeleaf {
    @GetMapping("/hello")
    public String thymeleaf(HttpServletRequest request){
        request.setAttribute("data","张梦杰你好！");
        return "Hello";
    }
}
